import java.io.IOException;
import java.net.Socket;

public class Worker extends Thread {
	private Socket accept;

	public Worker(Socket accept) {
		this.accept = accept;
	}

	public void run() {
		System.out.println("111111111");
		Request request = new HttpRequest(accept);
		Response response = new HttpResponse(accept);
		Processor processor = new HttpProcessor();
		processor.Handle(request, response);
		try {
			accept.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
